package html;

import node.TextNode;

public abstract class ElementWithText extends HtmlElement {
    public ElementWithText(String text) {
        appendChild(new TextNode(text));
        setDisplay(Display.INLINE);
    }
}
